Skip to content

Conversation

@devnexen
Copy link
Member

@devnexen devnexen commented Dec 5, 2025

  • consolidate encoding error exception b/w inflate_init()/deflate_init().
  • dictionary option is supposed to be packed.

ext/zlib/zlib.c Outdated
HashTable *dictionary = Z_ARR_P(option_buffer);
bool result = true;

if (!HT_IS_PACKED(dictionary)) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's possible to have a non-packed array that only has integer keys. So this check is wrong.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

true. I ll revert it

- consolidate encoding error exception b/w inflate_init()/deflate_init().
- dictionary option is supposed to be packed.
@devnexen devnexen marked this pull request as ready for review December 21, 2025 06:56
@devnexen devnexen merged commit 42f994c into php:master Dec 21, 2025
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants